package com.yc.test.threadPool;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyScheduled {

//    @Scheduled(cron = "0/1 * * * * ? ")
//    public void myTest() {
//        int num = MyExecutor.num++;
//        System.out.println("添加任务：" + num);
//        MyTask myTask = new MyTask(num);
//        MyExecutor.executor.execute(myTask);
//    }
}
